// 管理后台登录页面样式
.admin-login {
    min-height: 100vh;
    background: url('/src/assets/pic/admin_login_bg.png') center center / cover no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    // 背景遮罩层，增加层次感
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.2) 100%);
        pointer-events: none;
        z-index: 1;
    }
    // 背景装饰效果
    &::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: float 20s ease-in-out infinite;
        pointer-events: none;
        z-index: 2;
    }
}

.login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    // 内部光晕效果
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
        pointer-events: none;
        border-radius: 20px;
    }
    &:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.6);
    }
    &:active {
        transform: translateY(-4px) scale(1.01);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.sample-data-notice {
    margin-bottom: 20px;
    
    .el-alert {
        border-radius: 12px;
        border: 1px solid rgba(64, 158, 255, 0.2);
        background: linear-gradient(135deg, rgba(64, 158, 255, 0.1) 0%, rgba(64, 158, 255, 0.05) 100%);
        backdrop-filter: blur(10px);
        
        .el-alert__title {
            font-weight: 600;
            color: #409eff;
        }
        
        .el-alert__description {
            color: #606266;
            font-size: 14px;
            line-height: 1.5;
        }
    }
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    &::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.6), transparent);
        border-radius: 1px;
    }
}

.login-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

.login-form {
    .el-form-item {
        margin-bottom: 20px;
        &:last-child {
            margin-bottom: 0;
        }
    }
    .el-input {
        .el-input__wrapper {
            border-radius: 12px;
            border: 1px solid rgba(225, 232, 237, 0.6);
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.4);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.3);
            &:hover {
                border-color: rgba(102, 126, 234, 0.6);
                background: rgba(255, 255, 255, 0.5);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
            }
            &.is-focus {
                border-color: #667eea;
                box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
                background: rgba(255, 255, 255, 0.7);
            }
        }
        .el-input__prefix {
            color: #667eea;
            opacity: 0.8;
        }
    }
    .el-checkbox {
        .el-checkbox__input {
            .el-checkbox__inner {
                border-color: #e1e8ed;
                transition: all 0.3s ease;
                &:hover {
                    border-color: #667eea;
                }
            }
            &.is-checked .el-checkbox__inner {
                background-color: #667eea;
                border-color: #667eea;
            }
        }
        .el-checkbox__label {
            color: #7f8c8d;
            font-size: 14px;
        }
    }
}

.login-button {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }
    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
        pointer-events: none;
    }
    &:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
        background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
        &::before {
            left: 100%;
        }
    }
    &:active {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    &.is-loading {
        background: linear-gradient(135deg, rgba(168, 181, 224, 0.8) 0%, rgba(184, 165, 199, 0.8) 100%);
    }
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(225, 232, 237, 0.4);
    position: relative;
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    }
    .back-to-home {
        margin: 0;
        a {
            color: rgba(102, 126, 234, 0.8);
            text-decoration: none;
            font-size: 14px;
            transition: all 0.3s ease;
            position: relative;
            padding: 4px 8px;
            border-radius: 6px;
            &::after {
                content: '';
                position: absolute;
                bottom: -2px;
                left: 0;
                width: 0;
                height: 1px;
                background: linear-gradient(90deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
                transition: width 0.3s ease;
            }
            &:hover {
                color: rgba(102, 126, 234, 1);
                background: rgba(102, 126, 234, 0.1);
                -webkit-backdrop-filter: blur(5px);
                backdrop-filter: blur(5px);
                &::after {
                    width: 100%;
                }
            }
        }
    }
}

// 动画效果
@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes shimmer {
    0%,
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

// 响应式设计
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    .login-title {
        font-size: 24px;
    }
    .login-subtitle {
        font-size: 13px;
    }
    .login-button {
        height: 44px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 25px 15px;
    }
    .login-title {
        font-size: 22px;
    }
    .login-form {
        .el-form-item {
            margin-bottom: 15px;
        }
    }
}

// 深色模式支持
@media (prefers-color-scheme: dark) {
    .admin-login {
        background: url('/src/assets/pic/admin_login_bg.png') center center / cover no-repeat !important;
        &::before {
            background: linear-gradient(135deg, rgba(44, 62, 80, 0.4) 0%, rgba(52, 73, 94, 0.5) 100%);
        }
    }
    .login-card {
        background: rgba(44, 62, 80, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .login-title {
        color: #ecf0f1;
    }
    .login-subtitle {
        color: #bdc3c7;
    }
    .login-form {
        .el-input .el-input__wrapper {
            background: rgba(52, 73, 94, 0.8);
            border-color: #34495e;
            &:hover {
                background: rgba(52, 73, 94, 0.9);
                border-color: #667eea;
            }
            &.is-focus {
                background: rgba(52, 73, 94, 1);
            }
        }
        .el-checkbox .el-checkbox__label {
            color: #bdc3c7;
        }
    }
    .login-footer {
        border-top-color: #34495e;
        .back-to-home a {
            color: #3498db;
            &:hover {
                color: #5dade2;
            }
            &::after {
                background: #3498db;
            }
        }
    }
}